<div id="mws-container" class="clearfix">
  <div class="container">
    <div class="mws-panel grid_8">
      <div class="mws-panel-header"> <span class="mws-i-24 i-table-1">options - Management</span> 
          <span class="linktop">
			  <?php echo $html->link('Add ShippingSp', array('controller'=>'Setups', 'action'=>'add_shippingSp'))?>
          </span>
      </div>
      <div class="mws-panel-body">
        <div class="dataTables_wrapper">
          <table class="mws-datatable-fn mws-table">
            <thead>
              <tr>
                <th class="sorting_asc" rowspan="1" colspan="1" style="width: 141px;">Name</th>
                <th class="sorting" rowspan="1" colspan="1" style="width: 150px;">	price 	</th>
                 <th class="sorting" rowspan="1" colspan="1" style="width: 239px;">description</th>
                <th class="sorting" rowspan="1" colspan="1" style="width: 150px;">Status</th>
                <th class="sorting" rowspan="1" colspan="1" style="width: 91px;">Actions</th>
              </tr>
            </thead>
            <?php if(isset($ShippingSps) and ($ShippingSps)): 
					//pr($ShippingSps);
					//exit;
			?>
            <tbody>
            <?php  $x =0;
			foreach($ShippingSps as $ShippingSp){
				if($x%2==0)
				{
					$class ="odd";
				}
				else
				{
					$class ="even"; 
				}
				?>
              <tr class="gradeA <?php echo $class ; ?>">
                <td class=" sorting_1"><?php echo $ShippingSp['ShippingSp']['name']; ?></td>
                  <td class=" sorting_1">$<?php echo $ShippingSp['ShippingSp']['price']; ?></td>
                 <td class=" sorting_1"><?php echo $ShippingSp['ShippingSp']['description']; ?></td>
                <td class="center">
					<?php
                     if(isset($ShippingSp['ShippingSp']['status']) and ($ShippingSp['ShippingSp']['status']==1))
                     {echo "Active";}else{ echo "Deactive";} ?>
                 </td>
                <td class="center">
					<?php 
					echo $html->link("Edit", 
					array('action'=>'add_shippingSp',"ShippingSp", 
					base64_encode($ShippingSp['ShippingSp']['id'])),
					array('escape'=>false));  
                    ?>
                    <?php
                    echo $html->link('Delete',
                    array('controller'=>'Setups', 'action' => 'admin_delete_by_id',
                    'ShippingSp',$ShippingSp['ShippingSp']['id'],'admin_shippingsp'),
                    array('escape' => false,'id'=>'alink'), 'Are you sure?');
                  ?>
                </td>
              </tr>
              <?php $x++;} ?>
            </tbody>
            <?php endif; ?>
          </table>
          <div class="dataTables_info"></div>
          <div class="dataTables_paginate paging_full_numbers">
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
